<?php
include_once 'setup/setup.php';
$chk=stripslashes($_GET['chk']);
do {
     if ( ctype_alnum($chk) && $chk ) {
        $stmt = $dbh->prepare("UPDATE e_puser  SET u_ischeck='1' WHERE u_check=?");
		$stmt->bindParam(1,$chk,PDO::PARAM_STR );
		$stmt->execute();	
        $msg="訂閱確認完成！";
        break;
    } else {
        $msg="無效的確認碼！";
        break;
    }
} while (0);
//	echo $msg;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.0/build/reset-fonts-grids/reset-fonts-grids.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.0/build/base/base-min.css">
<title>系統訊息</title>
<style type="text/css">
<!--

-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body><div id="man">
<div class="h_line">彰化縣教師會電子報-系統訊息</div>
<?php if($msg){ ?>
<ul>
  <li><?php echo $msg;?></li>
  <li>如果有相關問題請來信至 <a href="mailto:service@cta.chc.edu.tw">service@cta.chc.edu.tw </a></li>
</ul>
<?php } ?>
</div>
</body>

</html>

